<template>
	<view class="back_home u-flex u-flex-items-center" @click="toHome">
		<image src="@/static/logo.png" mode="widthFix" class="_home_icon"></image>
		<view class="u-m-l-8 f-s-12 f-w-b white platform-name">尧君智库</view>
	</view>
</template>

<script setup>
	function toHome() {
		uni.reLaunch({
			url: '/pages/index'
		})
	}
</script>

<style scoped lang="scss">
	.back_home {
		padding: 0 8px 0px 2px;
		background: rgba(0, 0, 0, .25);
		border-radius: 20px;

		._home_icon {
			width: 34px !important;
			height: 34px !important;
			display: block;
		}
		.platform-name{
			width: max-content;
		}
	}
</style>